package jfae.core.test.properties;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.validation.constraints.NotNull;

import jfae.core.annotations.Editable;

@Entity
public class NotNullEntity {

	private String notNullProp1;
	private String notNullProp2;
	private String nullableProp1;
	private String nullableProp2;
	private String nullableProp3;
	
	@Editable @NotNull
	public String getNotNullProp1() {
		return notNullProp1;
	}
	public void setNotNullProp1(String notNullProp1) {
		this.notNullProp1 = notNullProp1;
	}
	@Editable @Column(nullable=false)
	public String getNotNullProp2() {
		return notNullProp2;
	}
	public void setNotNullProp2(String notNullProp2) {
		this.notNullProp2 = notNullProp2;
	}
	@Editable @Column(nullable=true)
	public String getNullableProp1() {
		return nullableProp1;
	}
	public void setNullableProp1(String nullableProp1) {
		this.nullableProp1 = nullableProp1;
	}
	@Editable @Column
	public String getNullableProp2() {
		return nullableProp2;
	}
	public void setNullableProp2(String nullableProp2) {
		this.nullableProp2 = nullableProp2;
	}
	
	@Editable
	public String getNullableProp3() {
		return nullableProp3;
	}
	public void setNullableProp3(String nullableProp3) {
		this.nullableProp3 = nullableProp3;
	}
	
}
